package com.neusoft.service;

import com.neusoft.pojo.Cart;

import java.util.List;


public interface CartService {
	
	//添加一条购物记录
	public boolean addToCart(Integer pid, Integer pquantity, int uid);
	
	//获取购物车列表信息，用于分页
	public List<Cart> getCartList(int uid, int currentPage, int pageSize);
	
	//删除购物的某一条记录
	public Integer deleteCart(int cid);
	
	//计算对应用户的购物车总数
	public Integer countCart(int uid);
	
	//计算对应用户的购物车总金额
	public Integer countPrice(int uid);
}
